# -*- coding:utf-8 -*-
from __future__ import division
from dao.MySqlDAL import MySqlDAL
import json
__author__ = 'shudongma.msd(风骐)'


# def a():
#     t = 1
#     def c():
#         print t
#     c()
#
# a()

a = '1 1 0 2 0 1 1 1 1 1 1 1 1 1 0 1 2 1 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0 2 0 1 0 0 1 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 0 1 2 0 1 0 0 1 0 1 1 0 1 2 0 0 0 1 0 1 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0 1 1 0'

b = '0 0 -1 1 1 1 0 1 0 -1 0 1 1 -1 -1 0 1 0 -1 1 1 0 -1 1 -1 1 0 0 0 0 1 1 0 -1 -1 1 1 1 0 1 0 -1 0 0 -1 1 1 0 0 1 1 0 1 1 0 1 -1 1 0 1 0 1 0 1 0 1 -1 0 0 1 0 0 0 -1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 1 1 0 0 0 0 -1 0 1 0 0 0 1 0 0 0 0 1 -1 -1 -1 0 0 1 0 1 1 -1 0 1 1 0 -1 0 0 -1 0 1 0 0 0 0 0 1 1 -1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 -1 1 1 1 -1 -1 1 0 1 1 0 -1 -1 1 1 1 0 1 1 0 1 1 1 0 0 1 1 0 1 0 0 0 0 1 0 1 1 -1 1 0 -1 0 0 -1 -1 1 0 -1 1 1 -1 -1 0 -1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1 0 1 0 0 0 0 0 -1 0 0 -1 1 0 1 -1 1 0 -1 0 1 -1 0 1 -1 1 1 0 0 1 1 0 0 1 0 -1 1 -1 0 0 0 0 0 1 0 0 -1 0 0 1 0 1 0 0 0 0 1 0 -1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 -1 0 0 0 0 0 0 0 1 0 0 0 1 -1 0 1 1 0 0 0 0 0 0 0 1 1 0 1 1 0 0 -1 1 1 0 1 1'

a=a.split(' ')
b=b.split(' ')

total = len(a)
count = 0
for i in range(total):
    if int(a[i])-1 == int(b[i]):
        count += 1

print count/total



with open("C:/Users/Melody/Desktop/desc.txt","w") as fr:
    fr.write("abc")